import { request } from '../request';

/** get list */
export function userInfoList(params: Api.SystemManage.UserInfoSearchParams) {
  return request<Api.SystemManage.UserInfoList>({
    url: '/userInfo/list',
    method: 'post',
    data: params
  });
}

/** save */
export function userInfoSave(params?: Api.SystemManage.UserInfoSaveParams) {
  return request<boolean>({
    url: '/userInfo/add',
    method: 'post',
    data: params
  });
}

/** update */
export function userInfoUpdate(params?: Api.SystemManage.UserInfoUpdateParams) {
  return request<boolean>({
    url: '/userInfo/update',
    method: 'post',
    data: params
  });
}

/** get */
export function userInfoGet(params: { id: string }) {
  return request<Api.SystemManage.UserInfo>({
    url: '/userInfo/get',
    method: 'post',
    data: params
  });
}

/** del */
export function userInfoDel(params: { id: string }) {
  return request<boolean>({
    url: '/userInfo/del',
    method: 'post',
    data: params
  });
}

/** delBatch */
export function userInfoDelBatch(params: { ids: Array<string> }) {
  return request<boolean>({
    url: '/userInfo/delBatch',
    method: 'post',
    data: params
  });
}
